Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

evangelist

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evangelist

Method library consists of reusable helper functions to help you save time

  • 0.8.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

evangelist

npm version npm download dependencies license

What is the Evangelist?

Evangelist is a modern JavaScript utility belt consists of reusable helper functions.

Plus, as a library, Evangelist is completely tree-shanking-friendly. Your favorite module bundler can easily inline the functionality you need with no extra configuration, instead of bundling the whole Evangelist package.

Quick start

Execute npm install evangelist to install evangelist and its dependencies into your project directory.

Usage

import * as evangelist from 'evangelist';

// wrap - calculator sample
let fnc = () => 5;
fnc = evangelist.wrap(fnc, (next) => next() * 2);
fnc = evangelist.wrap(fnc, (next) => next() + 1);

console.log(`fnc: ${fnc()}`); // outputs: 'fnc: 11'

// pipe - combine sample
const lower = x => x.toLowerCase();
const chars = x => x.replace(/[^\w \-]+/g, '');
const spaces = x => x.split(' ');
const dashes = x => x.join('-');

const slug = evangelist.pipe(lower, chars, spaces, dashes);

const message = slug('Hello World!');

console.log(`slug: ${message}`); // outputs 'slug: hello-world'

List of modules

  • pipe
  • wrap

Todo List

See GitHub Projects for more.

Requirements

License

Apache 2.0, for further details, please see LICENSE file

Contributing

See contributors.md

It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome.

  • To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
  • To report a bug: If something does not work, please report it using GitHub Issues.

To Support

Visit my patreon profile at patreon.com/eserozvataf

Keywords

FAQs

Package last updated on 07 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc